package zoo.workers;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Created with IntelliJ IDEA.
 * User: platonovv
 * Date: 25.11.13
 * To change this template use File | Settings | File Templates.
 */
public class Worker {
    private static final Log log = LogFactory.getLog(Worker.class);
    private String name;

    public Worker(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void voice() {
        log.info("Hello from worker " + name);
    }
}
